import './assets/main.css';
import { createApp } from 'vue';
import { useRouter } from 'vue-router'
import App from './App.vue';
import router from './router';

import * as ElementPlusIconsVue from '@element-plus/icons-vue';
const app = createApp(App);
app.use(router);
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
app.use(ElementPlus, {
    locale: zhCn,
});
import './assets/font/iconfont.css';
import './assets/font/iconfont.js';
import 'ol/ol.css';
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
};

app.config.globalProperties.$wlsf = {
    // 在这里编写你的函数代码
    filiv(data) {
        if (data) {
            let hz = data.split('.')[data.split('.').length - 1];
            if (hz == 'mp4') {
                return 4
            } else {
                return 3
            }
        }
    }

}



app.mount('#app');
